//https://www.hackerrank.com/challenges/kangaroo#include <iostream>using namespace std;int main(){    int x1;    int v1;    int x2;    int v2;    cin >> x1 >> v1 >> x2 >> v2;    set<int> st;    int count = 0;    bool did = false;    if((v1 >= v2 && x1 > x2) || (v1 <= v2 && x1 < x2));    else{        for(int i = 1; i <= 10000 ; ++i){            if(x1 + v1*i == x2 + v2*i){                did = true;                break;            }        }    }    if(did) cout << "YES" << endl;    else cout << "NO" << endl;        return 0;}